<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>实例模版</title>
    <script src="https://unpkg.com/vue@3"></script>
</head>
<body>
    <div id="app">
        <h1>原神，启动！</h1>
    </div>
</body>
</html>

<script>
    //创建一个vue实例和id为app的div进行挂载
    const appConn = Vue.createApp({
        //此处写Vue的所有核心代码
        template:'<h1>我是写在vue实例中的模版，我会将原有id为app的div中的内容替换掉</h1>'
    }).mount("#app")
</script>